/**
 *
 * Copyright (c) 2011 TLOSS. All rights reserved.
 * Created on Apr 22, 2011
 *
 */
package com.tloss.database.db2obj.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Tran Tung
 * 
 */
public class DateFormatUtils {
	public Date date;

	public void setDate(Date date) {
		this.date = date;
	}

	public String format(String form) {
		SimpleDateFormat dateFormat = new SimpleDateFormat(form);
		return dateFormat.format(date);
	}
}
